//
//  secondTableViewCell.m
//  UI10_作业2
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "secondTableViewCell.h"

@implementation secondTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}

- (void)creatCell{
    
    self.bigimgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_bigimgView];
    
    self.minimgView = [[UIImageView alloc] init];
    [_bigimgView addSubview:_minimgView];
    
    self.label = [[UILabel alloc] init];
    [_bigimgView addSubview:_label];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _bigimgView.frame = CGRectMake(15, 10, 345, 150);
    _bigimgView.backgroundColor = [UIColor clearColor];
    
    _minimgView.frame = CGRectMake(10, 10, 90, 130);
    _minimgView.backgroundColor = [UIColor cyanColor];
    
    _label.frame = CGRectMake(120, 50, 180, 50);
    _label.backgroundColor = [UIColor clearColor];
    
}










- (void)dealloc
{
    [_bigimgView release];
    [_minimgView release];
    [_label release];
    [super dealloc];
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
